<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


//Route::get('/',function(){
//   return view('welcome');
//});


//首页
Route::get('/','IndexController@index');

//文章内容页
Route::get('index/article_list','IndexController@article_list');
//添加文章   保存草稿
Route::get('index/article_add','IndexController@article_add');
Route::post('index/article_add','IndexController@article_add');
//删除文章
Route::get('index/article_del/{aid}','IndexController@article_del');
//修改文章
Route::any('index/article_update/{aid}','IndexController@article_update');
//批量删除文章
Route::get('index/article_dels/{id}','IndexController@article_dels');
